implement btween core and gui