changed security settings to support curl and sharing, fixed some bugs (listed as issues)