changed xopen to open alias