refactor
add simple frontend errors