com packs working locally with buffer

- malloc instead of new
- special copyconstructors
- special destructors