port: refine