delete folder methods and small bug fixes