add proper logging system