extend context scope of directive