adds some missing methods, and fixes some little bugs