adding .script, and stat functions