simplify the installation receipe, thanks to Dave B.
remove unused code