bugfix addslashes and some headers modification