capability cosntructor should use environment variables also