add main to component definition