register v2

add boolean