small changes
make reattach command only work if it exists