errors working, some ugliness