working on script scanner