assert direction return code

...trying to debug travis segfault