replace some platform functions from train to platform