debugging, still weird stuff occurs