moved OutOfMemoryError catching