refatoring lib
adding trustful domains