original code base from Rene10957, also original stuff from others