first draft of pipeline/push/pop
debugged versions. they now compile and link
remove some debug comments