implement deps checking