added folder_id querying to get_scans