some work on pdf downloading