test fix and script for autodeploying