fix to allow args to prepare funcs