added messages directive