made a script for publishind. not finished yet