some UI enhancements
fixed some real-nds bugs, defined out as_lib code due to several related bugs and fs failures