refactor
trying to work out parse api