moved everything into a single module and remove dependency on Django