added if exists to patch