add some script code

Signed-off-by: Andras Mitzki <mitzkia@gmail.com>