add capabilities.to_int32
add switch features marshalling
add marsh for features reply