views added, basic error handling