added errors. later i will make the metadata for direction maybe work...