updated to use logging and Cassandra 2