minor changes in lib