minor modifications, remove useless scripts