[+]: optimized some shell-functions