fixing permissions, changing logs.