exported and provided noninteractive versions to square and embed a system