small fixes in simple script