sketch and library for Amperka