added serial print stuff