added non-deactivated pirates check