got directive working