-added more logging to controllers