simple helper for extending native objects