todo
Script engine cleanup and compat with other instances