fixing exit code error detection
moving args
indexing pipline