reorganisation of compile scripts