removed boolean for debug and used config instead