random scripts and functions