added offline stuff