added some basic lib for editor