nano rebuild and clean-up