cleaned up version for scripts