fixed some const ref's
fixed some communication issues