added virtualenv initialization
added useful functions