added prim; fixed a buglet in exec