printer esp + removed waste code