migrating captain-sniffles repo code