some improvemance of external scripts