fixed sending messages from resources