changed custom scripts behavior, fixed default scripts/external scripts, and docs