adding code for kernel launch
adding kernel callback
adding code for memory loading