added utility function
allow specification of a format method as init param