log instead of puts for returned messages
remove unused block handling