ported stuff from chromeless 1, ready to rock