cleanup parser
spec json  stubbing refactoring