fixes for init and alpha handling