stabilized merge of thors stuf plus comented out experemental sprite object