remove useless else clause
reorganize file
put scripts path in variable