started moving some functions to platform location