add_block implemented with compile errors