utilities for bacon.js