add exit and rescan command