started adding further macros to simplify reading/writing objects