added additional flags for optimizations