bukkit support and minor bug fixes