add component.json and small fix