updated connection, added subscriber, tested rest api