pass dependencies as file objects