refactored sublime gem into helpers + test