add preliminary util functions for walk engine