updated version. just have to fix flags