handled errors
fixed constructor