chtime for first tree + more error checking