patch to enable console running