some parsing utility functions added