Do the last commit correctly and remove the debug code I committed instead and also make logging in remotely work properly