bugfix

- fix flag meaning
- unpack to unpack_from