a few parsing/utility functions for openfmri