fixes in vagrantfile and error handling