fixed firststart function and downloadcheck