better free methods; alloc/dealloc PIDs