modified a little to work on my env