fixed code to allow status code of 0. and fixed data strucutres to
support history #todo implement history