made file manager more generic