register mainclass in composer