fixing bugs, adding err locations