Fix perms
Update relese script
Use memory instead of temp