add method for custom_query_parser
delete tmp files