refine simpack compile