speed improvements, added new command to fill