redo alignment checks, fix flags, add standard flags