add pug functionality