hot fix and sqlite compat