handle structs of by_value and by_ref
remove binaries