added more logging stuff