removed unnecessary define() and added booleans for flagging get_patches()