add template and some libraries