properties.sh: refactoring