rearranged starthandler