removing warnings to instead write to stderr
cleaning module import - will need more work