break out console to separate library