empty web root bug, additional error handling