add core code to lab
add core code to master
test