Remove dependencies

As much as possible remove dendensies from external libraries