improve dynamic name directive
more work on input