store format functions instead of format strings