fixed console.err bug and added keys for online access