moved all the hacke behind the beautiful wall of the dream API – which works now for the type given parameters
bug fixes