fixed compiler errors, added stubs for custom messages