better plugin registration