tested on a VM. fixing kinks