add a close route function; close #2