adding write permissions to application
adding debugging control script