lots of subs fixes, plus added !open_subs command