removed end_* primops