version 9d, doesn't work with logging