register extension and task