did some tweaking, still some commands I don't understand