added put message funcionality