add compiler pass to auto register commands