remove maven and refine scripts