the 3rd param to open is an octal value, not decimal :p