https://github.com/gems-uff/sapos