added additional flags for static, smart and all.