added pt_alloc to small library