build lock clock and apollo