changed some flow stuff, added a nonwork option.