patch runtime and runtime environments sections