added dependent lib, initialised ctx