added profile object to program and automatic profile load