set conn as global var
add decoders, utils, cache