added functions for testing communication