temp query scripts in header to accommodate functionality