adapted to unix.
changed [var] to [property] for properties