handle entity ids as strings in scripting