script for automatic downloading