configuration should be passed as a parameter