fixed line numbers on run
added get state