params() no longer supports parameterless call, fixed bad logic in send_file()