new bastion version - handles ~