add clear method
more extensions
fix consts
fixes