add support for condition complition for swc