try to wrap consolelog in DEBUG?