[wip] mac library