library used across apl-serivices