updated reprap sending logic