added ratchet and ionic as weak dependencies