added compatibility for older systems; fixed shell requirement