LONG DATA handling

prerequisite for issue #33