added virtualenv support