some debugging, check todo