added use IO::File
Added call to create stage dir, filtered out status from STAGE