added lib from BlueFOX