errors and testing some stuff