moved slug to lib