improved actionstack, some errorhandling, improved interface