refactoring to use directives
in progress... signups