added console log window
fix permissions handling