trying to regulate file downloads