various bugs fixed - scanning prologues with locals