fixing directory and messed libs