use register_as in new plugins