Code format
add isHeadless