addressed issues with rake functions and added debug statements.