moved statics to top of directive.