some small fixes for scripts