fix redirect problem and add filter hooks
readme updated