use nio and jimfs