modifications for gelert and virtualenv