hacked and hardcoded lots of new feature requests
adaptions