updated dependencies and fixed some leakages