support for multiple files and opening after creation