cleanup and change permissions2