better bash_inc handling