some more util functions