more logging and shit