fixes for profile scripts