regard memory management as basic util for all library