fixed bug in requireconfig