fork of https://github.com/gingerlime/smugline