calculate tolerance radius
added few plugins