added initial leap controller and frame code