updated to work with ubuntu