autoclose plugin ruby stuff
merged