new messageing system works,  also added a z-buffer