make use of two previously  depricated methods
Merge pull request #37 from akurzhan/master

minor change for RunConfig