schema migration command and str fix