1. fix bug: replace localhost with current host
2. add file download feature