begin moving lua registration stuff into one class