generic flask thing