fixed script run bug, further datainput fixes