update input script for scala