fix lib to work independantly