refactor for only getting the breakpointid once and reuse it