added redirect and subsequent message code, deleted dist directory