fix crashes due to missing/wrong requires