change get_artifacts to improve speed