make load-main a class