Fix permissions on sh files
Add Query Protocol