added more logging to rake tasks