cleaned up log statements in API