changed to library check for extension