move the otp parser to this project (from view)