library used in byrclient