cleanup, create private and privileged methods