added extname to path library