fix redirect, add bootstrap constructor