More scriptable frontend etc and also bugfixes