ported over to jade templates