bug fixes and 14.04 support