some common utilities