call check format and fix npe
reorder formats
add missing hw init