adding trajectory loading as second argument to main