fixing minor bugs to get it running in ubuntu