moved parser to platform