move methods from util to base