debug
library fixes