removed errorlogging