cleanup component register macro