removed static functions, invalid post are now renamed and fixed for export