patselog -> libpastelog