fixing permissions and default preferences