bug fixes in * resolution, SQL paqu scratch table permission handling, and meta data creation error handling