from https://github.com/SU-SWS/open_framework