fixed exceptions
check that temp folder is available