added methods missing in previous commit.