start refactoring parse helpers