fix deployment of external libraries and fix storage on installation