added logging and upped to 4