added backbone_offline, cleaned up code