added block and map APIs