added control dir attribute