finished frontend.sh will improve later