changed scripts byte array to string to simplify non native scripts