implement print in stp mode