add ruby debug and advance file upload