improve connection handling on enter background
finish script Editor Implementation