fancy file opening macro