slight refactoring, implemented get/to parsing function pointer versions