replace echo -e with printf for POSIX compliance