fix segfault and licence info