added error message and subscriber set up