some signatures cleanup, added max example