simple communication code