morgan adapted for use with mag logger