refactored to particular script files