added some basic utils