added few helper functions
EOF