minor changes in logging and sim