:success and :failure can now take file paths