changed error reporting method
changed status code: 1 aval, 2 cont, 3 down, 4 miss, 5 proc, 6 done
changed status code, 6 for done
changes are all for debugging