remove redis and add security