make some order in tree commands
make f2eid function work with nulls and wrong files
introduce entity placing and links