changing logger so it writes to stderr