fixed flags, closes #1