Reverting changes to library

The changes made upstream of this repo broke slim, reverting them has
fixed the issue