console logging to file. kinda works?