support method to format block device with new API
remove unneccessary code