fixed getprofile, removed debug logging