update to patch & env