improved utility scripts