passing in the handler, instead of hard coding file_handler