beefed up dist version with jade