added fieldname to custom directive