improved lxc handling