added procfile write support to switch the message