added functions for hakyll