various minor helper methods