plug memleak
make sure that all members are correctly initialized