shortened scripts, deduplicated functionality