bug fixes up to finding start points from profile