added refresh; fixes #324