refactored station parsing