moved open file stuff out to new tree