rewrite symdotfiles in php for more flexibility