added error logs
777 access to tmp folder