get_block_count refactoring
fixed import_config