slight refactoring
Merge pull request #79 from mdsol/feature/refactor_hal_serializer

refactor_hal_serializer