small tweaks to library