Changed directive api