neater constructs for common scripts