updated to use swagger parser