move platform to util_sys, phase 1