added in a logging system