perl is more flexible implementation
fix up messaging