now using config variables