fixed remote permissions
fixed relative urls
fixed issue with path slashes
fixed https issue