[ag] inital working on the lib