fixed scope bug but there are still open issues... however first message sent