support legacy position config