remove debug code and ensure $(inherited) is always passed