rename to core and removed werkzeug dependency for function