second try for making code compatible with 14.04 indigo