added removeFromPath option to static