_get_realpath add

+refactoring
cleaning