patch wrep daemonized console