working on pi piper lib