updated travis config and fixed env bug