update and debug

add updates for ubuntu support