edit logging

add buildMSG, edited get_timestamp