use a static library to share code