fixes for script compat