Stats fix
API advanced logging
forwarded messages fix