worked around segfault problem