added config argument for request stack