finish library select dialog
cleanup
get rid of #! on non-main files