get rid of global dependencies