Download logic

Download logic in webcore