added method chaining support for assigning callbacks
getLastProcessedBlock is now public