Optimize the resolving a little bit
Add Go library support