more platform fixes, better use of defaults, improved signal handling