remove initial spaces in commands
remove explicit object type setting
add initial code for path/surface information