fixing permissions + increasing memory